import auto from '../../utils/allSidebar'
import { BASEURL, NAME, YEAR } from './configs/global';
import nav from './configs/nav';
import socialLinks from './configs/socialLinks';

module.exports = {
    title: 'IkunBlog',
    siteTitle: 'IkunBlog',
    description: '真正的大师永远怀着一颗学徒的心',
    lang:'zh',
    base: '/blog_ikun/',// github pages 配置
    // outDir: '../dist',
    head: [
        [
            'link',
            { rel: 'shortcut icon', href: `favicon.ico`, type: 'image/x-icon' },
        ], // 在HTML页面<head>里插入元素
    ],
    /* markdown 配置 */
    markdown: {
        lineNumbers: true
    },
    lastUpdated: true,
    /* 主题配置 */
    themeConfig: {
        sidebar: auto(),
        outline: 'deep',
        outlineTitle:'本页目录',

        layoutClass: 'my-layout',

        logo: {
            light: '/svg/Spongebob.svg',
            dark: '/svg/Pikachu.svg',
            alt: 'IkunBlog'
        },
        lastUpdatedText: '最近更新时间：', // 默认：Last updated,在上次更新时间之前显示的前缀文本
        // 页脚 仅当页面不包含侧边栏时才会显示页脚。
        footer: {
            message: '在 MIT 许可下发布',
            copyright: `Copyright (c) ${YEAR}-present ${NAME}`,
        },
        algolia: {
            appId: 'FLV4QMK65V',
            apiKey: '0dfa35870ce00132b3a649ac94084faf',
            indexName: 'test_NAME',
            placeholder: '请输入关键词',
            buttonText: '搜索'
        },
        nav,
        socialLinks
    }


}